package inheritance;

public class Student extends Person {
    private int StudentNum;

    public int getStudentNum() {
        return StudentNum;
    }

    public void setStudentNum(int studentNum) {
        StudentNum = studentNum;
    }

    public void study() {
        System.out.println(getName()+"is studying.");
    }

}
